#ifndef COMMON_H
#define COMMON_H
 
//typedef void (*PrintCallBack)(char* msg);

class LogMSG
{
public:
	static char* msg;
	static char* timeBuf;
	static void printMSG(char* buf);
	//static void Set(PrintCallBack showmsg);
	static void Close();
};

int init();
void  CurrentPath(char* dir);
void NoticeServer();
void closeIE();
void SetClientClose();
int IsClientClose();
void SetTryServer();
void SetServerState();
int IsServerAlive();			//checking the connection with server
void ClientClose();

int enqueue(struct soap* soap);
struct soap* dequeue();

#endif